package org.zhaijisong.pojo;

public class Permission {
    private Integer id;
    private String name;
    private Integer perntId;
    private String url;
    private Integer disorder;
    private String persVar;
    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPerntId() {
        return perntId;
    }

    public void setPerntId(Integer perntId) {
        this.perntId = perntId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getDisorder() {
        return disorder;
    }

    public void setDisorder(Integer disorder) {
        this.disorder = disorder;
    }

    public String getPersVar() {
        return persVar;
    }

    public void setPersVar(String persVar) {
        this.persVar = persVar;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Permission that = (Permission) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (perntId != null ? !perntId.equals(that.perntId) : that.perntId != null) return false;
        if (url != null ? !url.equals(that.url) : that.url != null) return false;
        if (disorder != null ? !disorder.equals(that.disorder) : that.disorder != null) return false;
        if (persVar != null ? !persVar.equals(that.persVar) : that.persVar != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (perntId != null ? perntId.hashCode() : 0);
        result = 31 * result + (url != null ? url.hashCode() : 0);
        result = 31 * result + (disorder != null ? disorder.hashCode() : 0);
        result = 31 * result + (persVar != null ? persVar.hashCode() : 0);
        return result;
    }
}
